home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / GRAPHICS / NANOTECH.ZIP / PIX.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-28  |  2.5 KB  |  81 lines

  1. /*
  2.  
  3. NanoTech - a 3d game engine
  4. Copyright (C) 1996  Sean Lane Fuller
  5.  
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or (at your option) any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. Sean Lane Fuller
  21. 124 Autumn Lane
  22. Tullahoma, TN 37388
  23. 615-393-4550
  24. email: fuller@edge.net
  25.  
  26. */
  27.  
  28. #define CHARBKGD 8
  29. #define CHARFGD 0x6f
  30. typedef float fixed;
  31. extern int background;
  32. void tunnel();
  33. void pix_loadpcx(char *buffer, char *filename, int setup_palette);
  34. void pix_fx1();
  35. void pix_disp_char(int c, unsigned int x, unsigned int y, int fgd, int bkgd);
  36. void pix_disp_str(char *s, int x, int y, int fgd, int bkgd);
  37. void pix_upd_mouse();
  38. void pix_setup_palette(float f);
  39. void pix_pset(int x, int y, int color);
  40. void pix_init();
  41. void pix_border();
  42. void pix_refresh();
  43. void pix_term();
  44. void pix_cls(int color);
  45. void pix_poly( int vert_x[], int vert_y[], fixed vert_z[], int no_verts, int color,
  46.       fixed u[], fixed v[]);
  47. void pix_per_poly( int vert_x[], int vert_y[], fixed vert_z[], int no_verts, int color,
  48.       fixed u[], fixed v[]);
  49. void pix_horiz_poly( int vert_x[], int vert_y[], fixed vert_z[], int no_verts, int color,
  50.       fixed u[], fixed v[]);
  51. void pix_wire( int vert_x[], int vert_y[], int no_verts, int color);
  52. void pix_line( int x1, int y1, int x2, int y2, short color);
  53. void pix_lineclip( int x1, int y1, int x2, int y2, short color);
  54. void pix_pop_msg(char *msg, int fgd, int bkgd);
  55. int pix_pop_yn(char *msg, int fgd, int bkgd);
  56. void pix_pulldown();
  57. void pix_pullup();
  58. extern char flash;
  59.  
  60. #define MAXNUMXPIXELS 1024
  61. #define MAXNUMYPIXELS 768
  62.  
  63. //#define VIDMODE _URES256COLOR
  64. //#define MAXX (640-1)
  65. //#define MAXY (400-1)
  66.  
  67. //#define VIDMODE _MRES256COLOR
  68. //#define MAXX (320-1)
  69. //#define MAXY (200-1)
  70.  
  71. //#define VIDMODE _XRES256COLOR
  72. //#define MAXX (1024-1)
  73. //#define MAXY (768-1)
  74.  
  75. //#define MIDX (MAXX/2)
  76. //#define MIDY (MAXY/2)
  77. //#define NUMXPIXELS (MAXX+1)
  78. //#define NUMYPIXELS (MAXY+1)
  79.  
  80. extern int MAXX, MAXY, NUMXPIXELS, NUMYPIXELS, MIDX, MIDY, VIDMODE, CLIPMAXX, CLIPMAXY;
  81.